<wx:page
 class="x-page"
 id="page"
 navigationBarTitleText="聊天列表"
 style="background-color:#F3F3F3"
 xmlns:bind="http://www.wex5.com/wx/bind"
 xmlns:catch="http://www.wex5.com/wx/event/catch"
 xmlns:on="http://www.wex5.com/wx/event/on"
 xmlns:wx="$UI/wxsys/comps">
<wx:model
 id="model"
 style="left:0px;top:0px;height:auto;position:absolute">
<wx:wxApi
 id="wxapi"
 label="通用接口"/>
<wx:commonOperation
 id="commonOperation"
 label="操作扩展"
 xmlns:wx="$UI/wxsys/comps"/>
<wx:restData
 _created="true"
 auto="load"
 className="/main/yonghufjxx"
 id="restData1"
 label="用户附加信息"
 url="/dbrest"
 xmlns:catch="http://www.wex5.com/wx/event/catch"
 xmlns:wx="$UI/wxsys/comps">
<filter
 _filter_label="用户ID 等于 用户信息.id"
 id="restDatafilter"
 name="_system1_">eq('fyonghuid',restData2.current.id/*{&quot;dependencies&quot;:[&quot;user&quot;]}*/)</filter></wx:restData>
<wx:restData
 _created="true"
 _orderBy_label="最后一条消息的接收时间:降序"
 auto="load"
 className="/main/liaotianlb"
 id="restData"
 label="聊天列表"
 orderBy="fzuihouytxxdjssj:desc"
 url="/dbrest">
<join
 id="default5"
 leftTable="/main/liaotianlb"
 rightTable="/uaa/users"
 xmlns="http://www.w3.org/1999/xhtml">
<on
 fn="eq"
 id="default6"
 leftField="fyonghu1"
 leftFieldLabel="用户1ID"
 rightField="id"
 rightFieldLabel="id"/>
<column
 field="avatarUrl"
 id="default7"
 label="用户1ID-头像"
 name="fyonghu1_users_avatarurl"/></join>
<join
 id="default8"
 leftTable="/main/liaotianlb"
 rightTable="/uaa/users"
 xmlns="http://www.w3.org/1999/xhtml">
<on
 fn="eq"
 id="default9"
 leftField="fyonghu2"
 leftFieldLabel="用户2ID"
 rightField="id"
 rightFieldLabel="id"/>
<column
 field="avatarUrl"
 id="default10"
 label="用户2ID-头像"
 name="fyonghu2_users_avatarurl"/></join>
<filter
 _filter_label="用户1ID 等于 restData.current.fyonghu1/*{&quot;dependencies&quot;:[&quot;restData&quot;]}*/"
 id="restDatafilter3"
 name="_system1_">eq('fyonghu1',restData.current.fyonghu1/*{&quot;dependencies&quot;:[&quot;restData&quot;]}*/)</filter>
<filter
 _filter_label="或者 用户1ID 等于 restData.current.fyonghu2/*{&quot;dependencies&quot;:[&quot;restData&quot;]}*/"
 id="restDatafilter4"
 name="_system2_">eq('fyonghu1',restData.current.fyonghu2/*{&quot;dependencies&quot;:[&quot;restData&quot;]}*/,'or')</filter></wx:restData></wx:model>
<wx:loading
 class="weui-loader-full {{$state.loadingNum &lt;= 0 ?'weui-loader-hide':''}}"
 style="z-index: 10001;"
 xmlns:bind="http://www.wex5.com/wx/bind"
 xmlns:catch="http://www.wex5.com/wx/event/catch"
 xmlns:on="http://www.wex5.com/wx/event/on"
 xmlns:wx="$UI/wxsys/comps">
<view
 class="ball-scale-ripple-multiple">
<view
 class="weui-loader-view"/>
<view
 class="weui-loader-view"/>
<view
 class="weui-loader-view"/>
<view
 class="weui-loader-view"/>
<view
 class="weui-loader-view"/></view></wx:loading>
<wx:inVisibleCompContainer
 id="inVisibleCompContainer">
<wx:user
 appPath="$UI/main"
 autoLoadUserInfo="true"
 autoLogin="true"
 id="user"
 useOpenid="false">
<wx:restData
 _created="true"
 className="uaa/user"
 columns="id,name,email,userName,phone,avatarUrl,description,data4,data5,data9,data15,data17,data2,data3,data6"
 id="restData2"
 label="用户信息"
 owner="user"
 xmlns:wx="$UI/wxsys/comps">
<column
 id="default0"
 label="昵称"
 name="nickName"
 type="String"/>
<column
 id="default1"
 label="群组"
 name="group"
 type="Array"/>
<column
 id="default2"
 label="是否登录"
 name="isLogined"
 type="Boolean"/>
<rule
 id="rule">
<readonly
 id="default3">
<expr
 id="default4">true</expr></readonly></rule></wx:restData></wx:user></wx:inVisibleCompContainer>
<wx:list
 _created="true"
 id="list"
 index="listindex"
 item="listitem"
 items="restData.value"
 label="动态列表">
<view
 id="view"
 label="聊天列表项">
<wx:row
 class="x-row"
 id="row"
 on:tap="{&quot;operation&quot;:&quot;commonOperation.openPageDialog&quot;,&quot;args&quot;:{&quot;url&quot;:&quot;$UI/main/liaotian_jl.w&quot;,&quot;params&quot;:&quot;js:{\&quot;param0\&quot;:listitem.fid}&quot;}}"
 style="background-color:#FFFFFF;margin-bottom:5px">
<wx:col
 bind:hidden="wx.Util.iif(listitem.fyonghu2==restData2.current.id,true,false)"
 class="x-col x-col-fixed"
 id="col"
 xmlns:bind="http://www.wex5.com/wx/bind"
 xmlns:catch="http://www.wex5.com/wx/event/catch"
 xmlns:on="http://www.wex5.com/wx/event/on">
<wx:image
 bind:src="listitem.fyonghu2_users_avatarurl"
 class="weui-img"
 id="image"
 mode="scaleToFill"
 style="width:64px;height:64px"
 xmlns:bind="http://www.wex5.com/wx/bind"
 xmlns:catch="http://www.wex5.com/wx/event/catch"
 xmlns:on="http://www.wex5.com/wx/event/on"/>
<wx:row
 class="x-row"
 id="row4">
<wx:col
 class="x-col"
 id="col12"
 style="text-align: center">
<wx:text
 id="text1"
 style="text-align: right;display:inline-block">用户2</wx:text></wx:col></wx:row></wx:col>
<wx:col
 class="x-col"
 id="col1"
 xmlns:bind="http://www.wex5.com/wx/bind"
 xmlns:catch="http://www.wex5.com/wx/event/catch"
 xmlns:on="http://www.wex5.com/wx/event/on">
<wx:row
 class="x-row"
 id="row2">
<wx:col
 class="x-col"
 id="col8"
 style="text-align: right">
<wx:text
 bind:text="listitem.fzuihouytxxdjssj"
 id="text2">最后聊天时间</wx:text></wx:col></wx:row>
<wx:text
 bind:text="listitem.fzuihouytxxdnr"
 id="text3">最后一条消息</wx:text></wx:col>
<wx:col
 bind:hidden="wx.Util.iif(listitem.fyonghu1==restData2.current.id,true,false)"
 class="x-col x-col-fixed"
 id="col2"
 xmlns:bind="http://www.wex5.com/wx/bind"
 xmlns:catch="http://www.wex5.com/wx/event/catch"
 xmlns:on="http://www.wex5.com/wx/event/on">
<wx:image
 bind:src="listitem.fyonghu1_users_avatarurl"
 class="weui-img"
 id="image1"
 mode="scaleToFill"
 style="width:64px;height:64px"
 xmlns:catch="http://www.wex5.com/wx/event/catch"
 xmlns:wx="$UI/wxsys/comps"/>
<wx:row
 class="x-row"
 id="row5">
<wx:col
 class="x-col"
 id="col15"
 style="text-align: center">
<wx:text
 id="text"
 style="display:inline-block">用户1</wx:text></wx:col></wx:row></wx:col></wx:row></view></wx:list></wx:page>___js___:import PageImpl from "$UI/wxsys/lib/base/pageImpl";var app = getApp();export default class IndexPage extends PageImpl {constructor(...args){super(...args);}}